const Router = require('koa-router')

const chargeRouter = new Router({prefix:'/charge'})

const { create,list,edit,remove } = require('../controller/charge.controller')

// 创建负责人
chargeRouter.put('/',create)
// 查询负责人
chargeRouter.get('/',list)
// 修改负责人
chargeRouter.post('/',edit)
// 删除负责人
chargeRouter.delete('/',remove)

module.exports = chargeRouter